package com.wigem.approve.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wigem.framework.common.util.common.GuidUtils;

/**
 * 楼宇字典对象 dic_estate
 *
 * @author DH
 * @date 2024-05-27
 */

@Data
@ApiModel
@TableName("dic_estate")
public class DicEstateEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty(value = "id", name = "id")
    @TableId
    private String id;

    /**
     * 楼宇名称
     */
    @ApiModelProperty(value = "楼宇名称", name = "estateName")
    @TableField(value = "estate_name")
    private String estateName;

    /**
     * 街乡id
     */
    @ApiModelProperty(value = "街乡id", name = "regionId")
    @TableField(value = "region_id")
    private String regionId;

    /**
     * 删除标记
     */
    @ApiModelProperty(value = "删除标记", name = "removeMark")
    @TableField(value = "remove_mark")
    private String removeMark;

    public void create() {
        this.id = GuidUtils.generate();
    }

    public void modify(String keyValue) {
        this.id = keyValue;
    }

}
